import { reactive } from '@vue/composition-api'
export default function () {
  const pageData = reactive({
    total: 0,
    pageSizes: [2, 5, 10, 15],
    pageSize: 2,
    currentPage: 1
  })
  const totalCount = (val) => {
    pageData.total = val
  }
  const handleSizeChange = (val) => {
    pageData.pageSize = val
  }
  const handleCurrentChange = (val) => {
    pageData.currentPage = val
  }
  return {
    handleSizeChange,
    handleCurrentChange,
    totalCount,
    pageData
  }
}
